package com.wes.dsptest.info;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.TextView;

import androidx.annotation.NonNull;

import com.wes.dsptest.R;

public class InfoView extends FrameLayout {
    private TextView tvTitle;
    private TextView tvContent;

    public InfoView(@NonNull Context context) {
        super(context);
        init();
    }

    public void init(){
        View view = LayoutInflater.from(getContext()).inflate(R.layout.info_view, this, false);
        tvTitle = view.findViewById(R.id.tv_tittle);
        tvContent = view.findViewById(R.id.tv_content);
        addView(view);
    }

    public TextView getTitleView(){
        return tvTitle;
    }


    public TextView getContentView(){
        return tvContent;
    }
}
